package com.weiyuwqj.admin.controller.admin.notice;

//import com.weiyuwqj.api.hengfeng.model.base.HfDataBean;
//import com.weiyuwqj.api.hengfeng.model.base.HfResultBean;
import com.weiyuwqj.api.model.BasUser;
import com.weiyuwqj.api.service.BasUserService;
import com.weiyuwqj.api.service.PayAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by huzj on 2016/12/20.
 */
@Controller
@RequestMapping(value="/admin/order")
public class OrderQueryController {

    @Autowired
    private PayAccountService payAccountService;
    @Autowired
    private BasUserService basUserService;

//    //订单查询
//    @ResponseBody
//    @RequestMapping(value = "/orderSearch", method = RequestMethod.POST)
//    public Object orderSearch(String orderId) {
//	    return payAccountService.orderSearch(orderId);
//
//    }
//
//    //余额查询
//    @ResponseBody
//    @RequestMapping(value = "/balanceSearch", method = RequestMethod.POST)
//    public Map balanceSearch(String userId) {
//        BasUser user = basUserService.selectByKey(userId);
//        // {"data":{"balance":"0.0000","frozen_amount":"0.0000"},"recode":"10000","remsg":"成功","signdata":"98f06cefc1af15c39a990be8fce100c7"}
//	    HfResultBean<HfDataBean> resultBean = payAccountService.balanceSearch(user.getPlatformId());
//	    Map resultMap = new HashMap();
//	    //成功
//	    //处理业务
//	    HfDataBean data = resultBean.getData();
//	    resultMap.put("result", "success");
//	    resultMap.put("messageText", resultBean.getMessageText());
//	    resultMap.put("balance", data.getBalance());
//	    return resultMap;
//    }
//    //标的查询接口
//    @ResponseBody
//    @RequestMapping(value = "/bidSearch", method = RequestMethod.POST)
//    public Object bidSearch(String bidId) {
//	    return payAccountService.orderSearch(bidId);
//    }

}
